package com.nopay.cdxphone.utils;

import java.text.NumberFormat;

/**
 * @ProjectName: myVisualPhone
 * @Package: cn.cn.myvisualphone.utils
 * @ClassName: DoubleUtils
 * @Description: java类作用描述
 * @Author: anqi
 * @CreateDate: 2021/5/30 17:02
 * @UpdateUser: 更新者
 * @UpdateDate: 2021/5/30 17:02
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class DoubleUtils {
    /**
     * Double 转string 去除科学记数法显示
     *
     * @param d
     * @return
     */
    public static String double2Str(Double d) {
        if (d == null) {
            return "";
        }
        NumberFormat nf = NumberFormat.getInstance();
        nf.setGroupingUsed(false);
        return (nf.format(d));
    }

}
